package ar.edu.itba.ontologias.TPONTO;

import java.util.List;

public class Movie {

	private String path;
	private String title;
	private List<String> countryNames;
	private String category;
	private int length;
	private String releaseDate;
	private List<String> alternativeTitles;
	private String imageUrl;

	public Movie(String path, String title, 
			List<String> countryNames, String category, int length,
			String releaseDate, List<String> alternativeTitles, String imageUrl) {
		this.path = path;
		this.title = title;
		this.countryNames = countryNames;
		this.length = length;
		this.category = category;
		this.releaseDate = releaseDate;
		this.alternativeTitles = alternativeTitles;
		this.imageUrl = imageUrl;
	}

	@Override
	public String toString() {
		return " path " + path + " title " + title 
				+ " countryNames " + countryNames + " category " + category
				+ " length " + length + " releaseDate " + releaseDate
				+ " titles " + alternativeTitles + " imageUrl " + imageUrl;
	}

	public String getPath() {
		return path;
	}

	public String getTitle() {
		return title;
	}
	
	public List<String> getCountryNames() {
		return countryNames;
	}

	public String getCategory() {
		return category;
	}

	public int getLength() {
		return length;
	}

	public String getReleaseDate() {
		return releaseDate;
	}

	public List<String> getAlternativeTitles() {
		return alternativeTitles;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	@Override
	public boolean equals(Object alt) {
		if (this == alt)
			return true;
		if (!(alt instanceof Movie))
			return false;
		Movie altMovie = (Movie) alt;
		return this.path == altMovie.path;
	}

}
